﻿using System;
using System.Linq;

namespace LayerData
{
    public class ObjectFactory
    {
        public static IPostgreSqlConnectionInfo CreateConnectionInfo()
        {
            return new DataBaseManager.PostgreSqlConnectionInfo();
        }

        public static IPostgreSqlConnectionInfo CreateConnectionInfo(string server, int port, string database, string userName, string password)
        {
            return new DataBaseManager.PostgreSqlConnectionInfo(server ,port ,database,userName,password ,false);
        }
    }
}